]> dgit.raspbian.org Git - gnome-shell.git/commit
st_widget_get_theme_node: g_error if called on an unparented widget
authorDan Winship <danw@gnome.org>
Wed, 17 Feb 2010 20:21:51 +0000 (15:21 -0500)
committerDan Winship <danw@gnome.org>
Wed, 10 Mar 2010 14:29:48 +0000 (09:29 -0500)
commitd128cc5af35674a8ec6604820127cb188172a59b
tree8c2c5a59bcf473162fdbfe327f705a16154381ac
parentb5c2e1c98c8427ac62d1b816997b16c48c4349d8
st_widget_get_theme_node: g_error if called on an unparented widget

It's wrong to do anything that requires looking up a widget's style
before you add the widget to the stage, since its final style may
depend on properties inherited from its parents.
st_widget_get_theme_node() used to emit a warning in this case, but
many would-be contributors apparently didn't notice. Help them out.

https://bugzilla.gnome.org/show_bug.cgi?id=610279
src/st/st-widget.c